/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sfs2x.extension.login.src;

import com.smartfoxserver.v2.core.SFSEventType;
import com.smartfoxserver.v2.extensions.SFSExtension;

/**
 *
 * @author dodinhchien
 */
public class LoginExtension extends SFSExtension{

    @Override
    public void init() {
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        addEventHandler(SFSEventType.USER_LOGIN, LoginHandler.class);
    }
    
    @Override
    public void destroy(){
        trace("Login extension stopped.");
        super.destroy();
    }
}
